package handle

import (
	"github.com/emicklei/go-restful/v3"
)

type Redirect struct {
}

func (r Redirect) InitRoute(container *restful.Container) {
	ws := new(restful.WebService)
	ws.Route(ws.GET("/trans/redirect").To(r.Redirect()))
	ws.Route(ws.GET("/trans/exec").To(r.Exec()))
	ws.Route(ws.GET("/trans/serveHttpc").To(r.ServeHTTPC()))
	ws.Route(ws.GET("/trans/default").To(r.Default()))
	container.Add(ws)

}
func (r Redirect) Redirect() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {

	}
}
func (r Redirect) ServeHTTPC() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
	}
}
func (r Redirect) Exec() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
	}
}
func (r Redirect) Default() restful.RouteFunction {
	return func(request *restful.Request, response *restful.Response) {
	}
}
